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 "prasanna@ibm.com" and "12#45"```
import requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = input("Enter HMC IP")
userid = "abc@ibm.com"
password = "12345"
verify_cert = False
session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert) |
```create a session using userid and password as "abc@ibm.com" and "12345"```
import requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = input("Enter HMC IP")
userid = "abc@ibm.com"
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 "beta@gmail.com"```
mport requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = "9.87.11.143"
userid = "beta@gmail.com"
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 "bangalore@gmail.com"```
import requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = "9.47.75.157"
userid = "bangalore@gmail.com"
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 "bangalore@ibm.com" as userid```
import requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = "9.37.44.217"
userid = "bangalore@ibm.com"
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 "bangalore@ibm.com" as userid```
import requests.packages.urllib3
import zhmcclient
requests.packages.urllib3.disable_warnings()
host = "9.37.44.217"
userid = "bangalore@ibm.com"
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 "98765@ibm.com"```
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 "abc@gmail.com". 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 = "abc@gmail.com"
password = "12345"
verify_cert = False
session = zhmcclient.Session(host, userid, password, verify_cert=verify_cert) |
``````
|
``````
|
``````
|