Last active
December 22, 2015 03:19
-
-
Save patrickmslatteryvt/6409264 to your computer and use it in GitHub Desktop.
vmnic debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@08-00-27-a3-a2-ed ~]# dladm show-phys | |
LINK MEDIA STATE SPEED DUPLEX DEVICE | |
e1000g0 Ethernet up 1000 full e1000g0 | |
e1000g1 Ethernet up 1000 full e1000g1 | |
[root@08-00-27-a3-a2-ed ~]# dladm show-phys -m | |
LINK SLOT ADDRESS INUSE CLIENT | |
e1000g0 primary 8:0:27:a:5:63 yes e1000g0 | |
e1000g1 primary 8:0:27:a3:a2:ed yes e1000g1 | |
[root@08-00-27-a3-a2-ed ~]# cat /usbkey/config | |
# | |
# This file was auto-generated and must be source-able by bash. | |
# | |
# admin_nic is the nic admin_ip will be connected to for headnode zones. | |
admin_nic=8:0:27:a3:a2:ed | |
admin_ip=10.254.250.55 | |
admin_netmask=255.255.254.0 | |
admin_network=... | |
admin_gateway=10.254.250.60 | |
headnode_default_gateway=10.254.250.1 | |
dns_resolvers=10.0.33.50,10.0.32.160,8.8.4.4 | |
dns_domain=devdmz.mywebgrocer.com | |
ntp_hosts=pool.ntp.org | |
compute_node_ntp_hosts=10.254.250.55 | |
ad_nic=8:0:27:a:5:63 | |
[root@08-00-27-a3-a2-ed ~]# nictagadm list | |
NAME MACADDRESS LINK | |
ad 08:00:27:0a:05:63 e1000g0 | |
admin 08:00:27:a3:a2:ed e1000g1 | |
nano ~/jira.json | |
{ | |
"alias" : "jira", | |
"autoboot": "true", | |
"brand": "joyent", | |
"dns_domain" : "devdmz.mywebgrocer.com", | |
"resolvers": ["10.0.33.50", "10.0.32.160"], | |
"image_uuid" : "0084dad6-05c1-11e3-9476-8f8320925eea", | |
"hostname" : "jira.devdmz.mywebgrocer.com", | |
"max_physical_memory": 2560, | |
"quota": 20, | |
"firewall_enabled": "true", | |
"cpu_shares": 250, | |
"nics": [ | |
{ | |
"nic_tag": "admin", | |
"ip": "10.254.250.61", | |
"netmask": "255.255.254.0", | |
"gateway": "10.254.250.1" | |
"primary": true | |
}, | |
{ | |
"nic_tag": "ad", | |
"ip": "dhcp" | |
} | |
] | |
} | |
vmadm validate create -f ~/jira.json | |
Invalid JSON payload: Unexpected token � | |
[root@08-00-27-a3-a2-ed ~]# cat ~/jira.json|json | |
json: error: input is not JSON: Unexpected '�' at line 14, column 1: | |
������� { | |
^ | |
{ | |
"alias" : "jira", | |
"autoboot": "true", | |
"brand": "joyent", | |
"dns_domain" : "devdmz.mywebgrocer.com", | |
"resolvers": ["10.0.33.50", "10.0.32.160"], | |
"image_uuid" : "0084dad6-05c1-11e3-9476-8f8320925eea", | |
"hostname" : "jira.devdmz.mywebgrocer.com", | |
"max_physical_memory": 2560, | |
"quota": 20, | |
"firewall_enabled": "true", | |
"cpu_shares": 250, | |
"nics": [ | |
������� { | |
"nic_tag": "admin", | |
"ip": "10.254.250.61", | |
"netmask": "255.255.254.0", | |
"gateway": "10.254.250.1", | |
"primary": true | |
��������}, | |
��������{ | |
������� "nic_tag": "ad", | |
��������"ip": "dhcp" | |
��������} | |
��������] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment