code
stringclasses
20 values
```create a session``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session using userid and password as "[email protected]" and "12#45"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = "[email protected]" password = "12345" verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session using userid and password as "[email protected]" and "12345"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = "[email protected]" password = "12345" verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.47.75.157"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.47.75.157" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.37.44.217"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.37.44.217" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.57.21.765"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.57.21.765" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session using "9.87.91.144" as host``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.91.144" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.87.11.143" using userid "[email protected]"``` mport requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.11.143" userid = "[email protected]" password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.47.75.157" with userid "[email protected]"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.47.75.157" userid = "[email protected]" password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on the host "9.37.44.217". Use "[email protected]" as userid``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.37.44.217" userid = "[email protected]" password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session where hmc ip is "9.57.21.765"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.57.21.765" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session with HMC ip as "9.37.44.217". Use "[email protected]" as userid``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.37.44.217" userid = "[email protected]" password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session taking inputs from the user``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session using user inputs``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on "9.87.67.142"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.67.142" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session on "9.87.67.142"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.67.142" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session . Host ip is "9.87.91.144" and userid is "[email protected]"``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.91.144" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```create a session with user inputs``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = input("Enter HMC IP") userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```Host ip is "9.37.44.217". Create session``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.37.44.217" userid = input("Enter user ID") password = input("Enter password") verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
```userid "[email protected]". HMC ip is "9.87.11.143". Create session.``` import requests.packages.urllib3 import zhmcclient requests.packages.urllib3.disable_warnings() host = "9.87.11.143" userid = "[email protected]" password = "12345" verify_cert = False session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert)
``````
``````
``````