{
    "mode": "man",
    "parameter": "iscsi-gen-initiatorname",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/iscsi-gen-initiatorname/8/json",
    "generated": "2026-10-04T18:16:45Z",
    "synopsis": "iscsi-gen-initiatorname [OPTIONS]",
    "sections": {
        "NAME": {
            "content": "iscsi-gen-initiatorname - smart iSCSI initiator name generation tool\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "iscsi-gen-initiatorname [OPTIONS]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "iscsi-gen-initiatorname generates an iSCSI Initiator Name in the initiatorname.iscsi file. It\nis  an  error to try to overwrite an existing Initiator Name, unless the -f (force) option is\nsupplied.\n\nThe Initiator Name will be taken from the kernel command line, if present (from  the  rd.ini‐\ntiatorname  parameter),  else  from the iBFT subsystem (if present in sysfs), else it will be\ngenerated using the iscsi-iname command.\n\nIt is an error if both the kernel command-line Initiator Name and the iBFT Initiator Name are\nboth set, and they are different.  it is also an error to try to write over an Initiator Name\nfile if it read-only, or to create one if its directory is not writable.\n\nYou must be root to run this command.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "[-h]   Display a help message and exit.\n\n[-f]   Force overwrite of existing initiator name, if present.\n\n[-p]IQN-PREFIX\nUse IQN-PREFIX as the  prefix  to  the  IQN  generated,  instead  of  the  default  of\niqn.1996-04.de.suse:01.\n",
            "subsections": []
        },
        "FILES": {
            "content": "/etc/iscsi/initiatorname.iscsi\nThe file containing the initiator name. Do not edit manually.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "iscsi-iname(8)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Open-iSCSI project <http://www.open-iscsi.com/>\nHannes Reinecke <hare@suse.de>\nLee Duncan <lduncan@suse.com>\n\nAPR 2022                    ISCSIGENINITIATORNAME(8)",
            "subsections": []
        }
    },
    "summary": "iscsi-gen-initiatorname - smart iSCSI initiator name generation tool",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "iscsi-iname",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/iscsi-iname/8/json"
        }
    ]
}