Service Desk Knowledgebase: Scratch space: Difference between revisions
(→Procedure To Be Tidied Up: Is thjis junk now?) |
|||
Line 19: | Line 19: | ||
* '''2.2 DNS - pre use if needed (e.g. Linux)''': update the TXT RR for the machine to note the PCCL0xx machine actually used (change '''vi''' to '''ed''', '''pico''', etc as preferred) | * '''2.2 DNS - pre use if needed (e.g. Linux)''': update the TXT RR for the machine to note the PCCL0xx machine actually used (change '''vi''' to '''ed''', '''pico''', etc as preferred) | ||
(cd /global/src/etc/named; co -l src/cl.data; vi src/cl.data; ci -u src/cl.data) | (cd /global/src/etc/named; co -l src/cl.data; vi src/cl.data; ci -u src/cl.data) | ||
* '''3.4 keytab install (Linux)''': Ensure $HOST has a keytab. If the command below fails, create a new keytab | * '''3.4 keytab install (Linux)''': Ensure $HOST has a keytab. If the command below fails, contact gt19 to create a new keytab. On $HOST run: | ||
cl-onserver --keytab | cl-onserver --keytab | ||
* '''4.1 User Admin - when running if needed (Linux)''': If oper were not told the 'assigned user', on $HOST run: | * '''4.1 User Admin - when running if needed (Linux)''': If oper were not told the 'assigned user', on $HOST run: |
Revision as of 15:29, 11 September 2015
Return to the Service Desk Knowledgebase SERVICE PORTFOLIO
Help Desk Scratch Space
Special information for re-use of PCCL0xx machines for 2015/10
There is a ticklist of steps to ensure a lab system is setup and documented correctly at http://www.wiki.cl.cam.ac.uk/rowiki/SysInfo/MachineSetup whose ToC can be used as an aide-memoire to check that everything has been done, or by going into the text itself, to see what needs to be done.
Due to unfortunate expected dates for new Intel CPUs and chipsets and Asus Motherboards, a number of 2015/10 arrivals will be given ex-SW11 PWF Dell machines to tide them over until the BMC version of the Asus motherboard is available and tested.
To aid with the setup of these machines, the ToC has been analysed and the expected required steps listed below.
There are two classes of users:
- RSs should be allocated machine names 128.232.65.5[0-9].
- Other 'misc pool' temporary use (e.g. short term visitors; people buying kit when they have settled in) should be allocated machine names 128.232.65.6[0-9].
HelpDesk needs to tell oper the DNS name ($HOST) to use, as well as the user and office+desk if known. When done, oper will tell Helpdesk the Inv# and 'old' name of the system used, so that 2.2 and 2.3 can be done.
- 2.2 DNS - pre use if needed (e.g. Linux): update the TXT RR for the machine to note the PCCL0xx machine actually used (change vi to ed, pico, etc as preferred)
(cd /global/src/etc/named; co -l src/cl.data; vi src/cl.data; ci -u src/cl.data)
- 3.4 keytab install (Linux): Ensure $HOST has a keytab. If the command below fails, contact gt19 to create a new keytab. On $HOST run:
cl-onserver --keytab
- 4.1 User Admin - when running if needed (Linux): If oper were not told the 'assigned user', on $HOST run:
cl-asuser cl-hostid-fix --user $CRSID -a
- 4.2 Arrivals - when done: fix https://dbwebserver.ad.cl.cam.ac.uk/SCG/Equipment/PhDArrivals.aspx and update RT ticket to include machine name ($HOST) in ticket Subject:
- 4.3 Tell the user - when done: Send final 'std email' to user. Resolve RT ticket.
- 4.6 ssh_known_hosts - at leisure if needed (Linux): when the machine is running, on a different machine run
/global/src/usr.bin/ssh/fetch-host-key scan $HOST
- 4.8 ownfiles - at leisure if needed (Linux): to ensure that ownfiles data is collected, run
(umask 2; touch /usr/groups/linux/ownfiles/CKSUM/$HOST)
- 4.9 WoL - at leisure: to ensure that WoL is available, run:
/usr/groups/netmaint/boot_wol_file-add.pl $HOST
Common case of setting up a new Ubuntu machine
There is a ticklist of steps to ensure a lab system is setup and documented correctly at http://www.wiki.cl.cam.ac.uk/rowiki/SysInfo/MachineSetup whose ToC can be used as an aide-memoire to check that everything has been done, or by going into the text itself, to see what needs to be done.
The common case of a new machine is run through below.
HelpDesk sets some things up, asks oper to do their bit, and when told that it is done, test it and finish off the job.
- 2.1 Gather info - first thing: collect all the information required using the RT ticket, such as the machine name, the subdomain (if any), VLAN, assigned user, etc.
- 2.2 DNS - pre use if needed (e.g. Linux): create an entry in the DNS for the machine on the correct subnet, with the appriorate subdomain (if any), and any BMC. Include a TXT RR with the owner and the RT ticket number. BMCs on the same VLAN as the host (typically user workstations using iAMT) should have the same name as host, with a -bmc suffix, but if using the BMC subnet (typically servers with dedicated BMC NICs) they should be on the BMC VLAN in the .bmc subdomain. If a 'same VLAN' BMC is in a subdomain, create a DNS alias for the BMC in the root domain. On the Managed Linux subnet, the top half of the subnet is used for the BMCs, with the address being in the class C which is 8 larger. Some subnets (e.g. SRG) have 'port blocked' CIDR blocks for BMCs, so look to see where other BMCs are. Thus a standard machine might be
foo IN A 128.232.65.83 IN TXT "pb22 RT#12345" ... foo-bmc IN A 128.232.73.83
while a machine on the security subnet might be
foo.sec IN A 128.232.18.83 IN TXT "pb22 RT#1234" foo-bmc.sec IN A 128.232.18.84 foo-bmc IN CNAME foo-bmc.sec
To update the dns (change vi to ed, pico, etc as preferred) and install it, on an omnioptent server
cd /global/src/etc/named co -l src/cl.data vi src/cl.data ci -u src/cl.data make install
- 3 Machine install: ask the operators to
- 2.3 Inventory - pre use if using DHCP (Windows) <CLCO>: create or update the Inventory information (telling them the equipment details (e.g. 'PC WoC ASUS 1150 Q87M-E i5-4670 32GB'), name, PO number, supplier, owner, user, RT ticket number and any other info for the 'comment'), print off and stick on a label
- 3.1 Network setup <oper>: tell them the office, desk, floorbox and VLAN to use
- 3.2 BMC BIOS setup - if present <oper>: tell them if there is a BMC
- 3.3 OS install <oper>: tell them to do a 'standard Linux install'
- 4.10 Wiring database - once physically installed <oper>: check that the wiring info is up to date
- 3.4 keytab install (Linux): Ensure $HOST has a keytab. If the command below fails, create a new keytab (contact gt19 is necessary). On $HOST run:
cl-onserver --keytab
- 4.1 User Admin - when running if needed (Linux): If oper were not told the 'assigned user', on $HOST run:
cl-asuser cl-hostid-fix --user $CRSID -a
- 4.2 Arrivals - when done: fix https://dbwebserver.ad.cl.cam.ac.uk/SCG/Equipment/PhDArrivals.aspx and update RT ticket to include machine name ($HOST) in ticket Subject:
- 4.3 Tell the user - when done: Send final 'std email' to user. Resolve RT ticket.
- 4.5 hosts.props - at leisure: All machines should be added to hosts.props in /global/src/usr.lib. The format is somewhat overwhelming, so it may be easiest to copy a similar existing entry (note that they are sorted alphabetically). You can find a basic HW spec of the machine $host, and then type that string in place of $type to see which others machines are similar. If there are no other matches, try removing words from the end of $type to look for more generic information. If there is no useful match, email sys-admin asking for help. When a suitable machine '$from' has been found, clone its information. So for $host, try
type=$(/anfs/repl/etc/wtfi -S CL_Equipment-raw -q -f Equipment -w $host) echo trying type=\"$type\" /anfs/repl/etc/wtfi -S CL_Equipment-raw -q -f name "$type" | sort -u # set from to be a suitable host, e.g.: from=spondon cd /global/src/usr.lib f=hosts.props; co -l $f&& ./hosts.props-add.pl $from $host <$f >$f-new && mv $f-new $f && ci -u $f
- 4.6 ssh_known_hosts - at leisure if needed (Linux): when the machine is running, on a different machine run
/global/src/usr.bin/ssh/fetch-host-key scan $HOST
- 4.7 BMC ACL - when up if present: check that the user has BMC credentials in /homes/$CRSID/.amtpw, then from a Lab machine, open a browser to the BMC (typically http://$host-bmc.cl.cam.ac.uk:16992) as user admin, delete any previous assigned user, and add the new one with all privs. The command to setup credentials on an omnipotent server is:
/usr/groups/netmaint/setamt $CRSID
- 4.8 ownfiles - at leisure if needed (Linux): to ensure that ownfiles data is collected, run
(umask 2; touch /usr/groups/linux/ownfiles/CKSUM/$HOST)
- 4.9 WoL - at leisure: to ensure that WoL is available, run:
/usr/groups/netmaint/boot_wol_file-add.pl $HOST
Procedure To Be Tidied Up (maybe done above?)
So from https://rt.cl.cam.ac.uk/Ticket/Display.html?id=96922 this seems to boil down to the following for the Help Desk for the https://rt.cl.cam.ac.uk/Ticket/Display.html?id=96580 test case.
NOTE: There is ONLY now one case...
Machine install
keytab install (Linux)
On $HOST: cl-onserver --keytab If there is no keytab to install, create one and retry
Tidies
- 4.1 User Admin - when running if needed (Linux)
If oper were not told the 'assigned user' for 3.3, on $HOST: cl-asuser cl-hostid-fix --user $CRSID -a
- 4.2 Arrivals - when done
fix https://dbwebserver.ad.cl.cam.ac.uk/SCG/Equipment/PhDArrivals.aspx Update RT ticket to include machine name in ticket Subject:
- 4.3 Tell the user - when done
Send user message Resolve RT
- 4.6 ssh_known_hosts - at leisure if needed (Linux)
when the machine is running, on *another* machine run /global/src/usr.bin/ssh/fetch-host-key scan $HOST
- 4.8 ownfiles - at leisure if needed (Linux)
run: (umask 2; touch /usr/groups/linux/ownfiles/CKSUM/$HOST)
- 4.9 WoL - at leisure
run: /usr/groups/netmaint/boot_wol_file-add.pl $HOST
HelpDesk needs to tell oper the DNS name to use as well as the user and office+desk
When done, oper will tell Helpdesk the Inv# and 'old' name of the system used, so that 2.2 and 2.3 can be done.
Pre install
- 2.2 DNS - pre use if needed (e.g. Linux)
names and addresses assigned, but once 3.3 is done, update TXT RR
- 2.3 Inventory - pre use if using DHCP (Windows) <CLCO>
once 3.3 is done, put RT# in comment, set user and office