You may need to disable selinux temporarily to make changes to these files (setenforce 0)
(note that many nmcli commands will fail if the underlying device is not active (i.e., disconnected in VMware))
1. List connections
nmcli c show
2. rename an connection id called "outside" - change it to eth0
nmcli c modify outside connection.id eth0
3. change a nic (with a connection name of "ethernet" and a device name of ens32) to static and assign an address, gw, dns, etc. (172.19.22.1 is the default gateway. Separate additional addresses with commas, leaving a space before the default gateway.)
nmcli c modify ethernet connection.interface-name ens32 ipv4.method static ipv4.addresses "172.19.22.3/24 172.19.22.1" ipv4.dns 172.19.22.10,172.19.22.11 ipv4.dns-search mydomain.local
4. Bring up your new connection:
nmcli con up ethernet
5. delete a connection called "wired":
nmcli con delete wired
6. create a new connection (called "eth0") using an ethernet device called "ens32":
nmcli con add type ethernet con-name eth0 ifname ens32
7. change the hostname:
nmcli general hostname new_hostname
and restart hostnamed to pick up the change (your shell prompt won't change until you exec a new shell or reboot):
systemctl restart systemd-hostnamed
Tuesday, January 13, 2015
Tuesday, December 30, 2014
Secure Connection Failed With HP BL460c Blades in a C7000
I recently picked up some used blade servers on ebay. The problem was though the onboard administrator on the C7000 recognized them, neither Firefox nor IE could manage the web component of the blade as the certificate was long expired and from an untrusted CA (HP's self signed CA.)
The error message was:
*my ilo site* uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. (Error code: sec_error_unknown_issuer)
Adding an exception for the certificate failed. I found this link:
Mozilla's support site
Basically, you close firefox, delete cert8.db and start firefox again. After that, add the exception.
The error message was:
*my ilo site* uses an invalid security certificate. The certificate is not trusted because the issuer certificate is unknown. (Error code: sec_error_unknown_issuer)
Adding an exception for the certificate failed. I found this link:
Mozilla's support site
Basically, you close firefox, delete cert8.db and start firefox again. After that, add the exception.
Saturday, November 29, 2014
RedHat Enterprise/CentOS Kickstart with Bonding
In order to set up the bonded interfaces (in 802.3ad mode) when first booting, you'll need to supply the following arguments to kickstart:
ks=http://name_of_apache_server/myconfig.cfg ip=your.ip.address netmask=yournetmask gateway=yourgateway dns=nameserver1,nameserver2 hostname=yourfqdn bond=bond0:eth0,eth1:mode=802.3ad:miimon:100
ks=http://name_of_apache_server/myconfig.cfg ip=your.ip.address netmask=yournetmask gateway=yourgateway dns=nameserver1,nameserver2 hostname=yourfqdn bond=bond0:eth0,eth1:mode=802.3ad:miimon:100
Friday, October 31, 2014
OTRS ITSM - Simple template for CAB-Free Change
OTRS ITSM - Simple template for CAB-Free Change
ITSM with OTRS is a rather manual process. You can create conditions and move the state around, but the controls are limited; you cannot readily create a template that locks workorder state changes until the change is approved.
What you can do is create a template that simplifies some of the changes. The following flow adds an approval workorder, and requires that work order to be set to "closed" before the ticket changes to "approved."
1. Create a new change request with a name such as "my template"
2. Create a worked called "approval" with the type "approval" and with the text "APPROVAL TEMPLATE TEXT. PLEASE REPLACE"
3. Create a condition called "before approval" using the "AND" operator
add the following expressions:
object: workorder
selector: 1-approval
attribute: workorder
state operator: is
value: Accepted
and
object: change
selector: (pick the only change listed, the change you are on)
attribute: change state
operator: is
value: requested
It'll look something like this:
Then, add the following action:
object: change selector: (same change number as above) attribute: change state operator: set value: pending approval
4. Save that condition and create a new condition "approved"
add this expression:
object: workorder
selector: 1-approval
attribute: workorder state
operator: is
value: closed
and this action:
object: change
selector: (same change number as above)
attribute: change state
operator: set
value: approved
and save it.
It'll look like this:
5. Save this and click "template" on the menu. Choose a name.
6. When you create a new change, select "New (from template)"
ITSM with OTRS is a rather manual process. You can create conditions and move the state around, but the controls are limited; you cannot readily create a template that locks workorder state changes until the change is approved.
What you can do is create a template that simplifies some of the changes. The following flow adds an approval workorder, and requires that work order to be set to "closed" before the ticket changes to "approved."
1. Create a new change request with a name such as "my template"
2. Create a worked called "approval" with the type "approval" and with the text "APPROVAL TEMPLATE TEXT. PLEASE REPLACE"
3. Create a condition called "before approval" using the "AND" operator
add the following expressions:
object: workorder
selector: 1-approval
attribute: workorder
state operator: is
value: Accepted
and
object: change
selector: (pick the only change listed, the change you are on)
attribute: change state
operator: is
value: requested
It'll look something like this:
Then, add the following action:
object: change selector: (same change number as above) attribute: change state operator: set value: pending approval
4. Save that condition and create a new condition "approved"
add this expression:
object: workorder
selector: 1-approval
attribute: workorder state
operator: is
value: closed
and this action:
object: change
selector: (same change number as above)
attribute: change state
operator: set
value: approved
and save it.
It'll look like this:
5. Save this and click "template" on the menu. Choose a name.
6. When you create a new change, select "New (from template)"
Tuesday, September 30, 2014
Cisco VPN 3005 - Import XML Config
The Cisco 3005 VPN concentrator is most definitely a device past its prime. However, I still see them in the field (even though they should not be used.)
One problem that I've seen is that the GUI does not provide for a way to import the XML file that it so readily exports.
The answer is to use the CLI. First, upload the XML file to the file system in the GUI under file management and remember the name you used. Then connect to the device via serial or some other manner:
From there, select 2, and you'll see:
Put in the name of the file you copied to the system using the GUI and you'll see:
One problem that I've seen is that the GUI does not provide for a way to import the XML file that it so readily exports.
The answer is to use the CLI. First, upload the XML file to the file system in the GUI under file management and remember the name you used. Then connect to the device via serial or some other manner:
Welcome toCisco SystemsVPN 3000 Concentrator SeriesCommand Line InterfaceCopyright (C) 1998-2005 Cisco Systems, Inc.1) Configuration2) Administration3) Monitoring4) Save changes to Config file5) Help Information6) Exit
From there, select 2, and you'll see:
Select 81) Administer Sessions2) Software Update3) System Reboot4) Reboot Status5) Ping6) Traceroute7) Access Rights8) File Management9) Certificate Management10) Back
Which File to import XML from
Put in the name of the file you copied to the system using the GUI and you'll see:
Import successful.Back out: 10 followed by 10 again, and save config. Reboot the system. You may need to re-import the XML as sometimes things like default gateways don't get set correctly on the first import.
Saturday, August 30, 2014
Kickstart Command Line Options/Arguments
Here are a bunch of handy arguments taken from this page:
Redhat Documentation
So, typically I interrupt a Redhat boot and choose the following:
(appended to the normal boot line)
ksdevice=eth0 ip=10.2.3.4 netmask=255.255.254.0 gateway=10.2.3.1 dns=10.10.10.2,10.10.10.4 ks=http://url/to/my/kickstart.cfg
Redhat Documentation
So, typically I interrupt a Redhat boot and choose the following:
(appended to the normal boot line)
ksdevice=eth0 ip=10.2.3.4 netmask=255.255.254.0 gateway=10.2.3.1 dns=10.10.10.2,10.10.10.4 ks=http://url/to/my/kickstart.cfg
Wednesday, July 16, 2014
Converting a Cisco 1141N Lightweight Access Point to Autonomous Mode
The biggest challenge in performing this operation is that the config terminal mode is not readily available.
To enable it:
6. After a successful boot, you can delete the old IOS image with something like:
delete /recursive /force flash:/name_of_old_ios_image
To enable it:
debug capwap console cli
After that, let the ethernet interface (gi0) obtain an address over dhcp
1. archive tar /xtract tftp://myserver/myiosimage.tar flash:
2. After that finishes, wipe the config:
erase startup-config
3. conf t
4. boot system flash:/nameOfYourIOSIMAGE/imagefile
(i.e., boot system flash:/c1140-k9w7-tar.152-4.JB5.tar/c1140-k9w7-tar.152-4.JB5)
5. reload
6. After a successful boot, you can delete the old IOS image with something like:
delete /recursive /force flash:/name_of_old_ios_image
Subscribe to:
Posts (Atom)