You are on page 1of 4

BFO

/opt/pdtools/bin/autofix --bfo -v bigip15.1.x-tmos-bugs -b bug_id changelist

== perforce configuration ==
export P4CONFIG=p4.config
export P4PORT=p4proxy-lwl.f5net.com:1999
export P4USER=vjosyula
export P4DIFF="/usr/bin/diff -u"
p4 set P4CLIENT=vjosyula-firewall

# viewing workspaces
p4 workspaces -u vjosyula

# deleting workspaces
open p4 client and change options to unlocked
p4 set P4CLIENT=vjosyula-firewall
p4 client -d vjosyula-firewall

# workspace creation
mkdir vjosyula-firewall
cd vjosyula-firewall

# create p4.config file with


P4PORT=perforce.f5net.com:1666
P4USER=vjosyula
P4CLIENT=vjosyula-firewall

p4 client -t MASTER-tmos-firewall-general
p4 sync

p4 merge //releasebranch/...@=100 //trunk/...

== build setup ==
schroot -c centos7.4a64
./build -setup latest
./build -prebuilt
./build -j 8 -t 8 -maxload 28 iso-user (building complete iso)

== building tmm rpm ==


export GCC_VERSION=4.8
./build -nodep tmm
./build -nocheck -nodep -prepkg -j 6 tmm

== compiling tmm ==
cd tmm/compile
schroot -c centos7.4a64
make -j 10 PLATFORM=vadc DEBUG_SYMBOLS=YES DISABLE_OPTIMIZATION=YES debug
make -j 10 PLATFORM=padc DEBUG_SYMBOLS=YES DISABLE_OPTIMIZATION=YES debug
binary file is available in
/home/vjosyula/dev-vjosyula-firewall/tmm/compile/obj_x86_64.debug/tmm-vadc.debug

unittest crash location


/home/vjosyula/dev-vjosyula-firewall/tmm/test/unittest

== standard build location ==


/build/bigip/project/tmos-pem-cec/daily

== installing iso ==
tmsh install sys software image BIGIP-tmos-pem-cec-15.0.0-0.0.789.iso volume HD1.2 create-volume
tmsh show sys software status
grub_default -b HD1.2

tmsh delete sys software volume HD1.1


tmsh reboot volume HD1.2
cat /VERSION
cat /PLATFORM

== big ip details ==
tmsh show sys hardware

== tmm debug loading ==


copy tmm to /shared/images
ln -s /shared/images/tmm-vadc.debug /etc/alternatives/tmm -f
ln -s /usr/bin/tmm.default /etc/alternatives/tmm -f (restore the tmm with standard build)

== gdb ==
copy gdb rpm to /shared/images in big ip
gdb rpm location -> /home/vjosyula/pem-cec/RPMS/x86_64/gdb-7.6.1-94.el7.centos.x86_64.rpm
install gdb rpm using -> rpm -ivh --force gdb-7.6.1-94.el7.centos.x86_64.rpm
gdb --args tmm-vadc.debug -T 1 --tmid 0 --npus 1 --platform Z100 -m -s 2472
gdb --args tmm-padc.debug -T 2 --tmid 0 --npus 2 --platform C119 --split-planes -m -s 43692

Num     Type           Disp Enb Address            What


1       breakpoint     keep y   0x000000000185a591 in ifc_switch_packet at ../net/ifvlan.c:177

(or)

schroot -c ionian64

copy gdb from /opt/gdb/7.4/bin/gdb

 
copy libpython2.6.so and python2.6 (lib and lib64) from seadev to bigip instance on /shared/images
export LD_LIBRARY_PATH=/usr/lib/:/usr/lib64/:/shared/images/

export PYTHONHOME=/usr/:/shared/images/

== interface stats ==
tmsh show net interface
tmsh reset-stats net interface

== enabling debugs in tmm ==


in tmm/sys/debug.h make componet to 1
tmsh modify sys db tmm.cec.log.level value Debug

== disabling unittests ==
export RUNTESTS=NO

== review board ==
https://docs.f5net.com/pages/viewpage.action?pageId=265598937
/build/cm/bin/rb2 create <changelist-no>
/build/cm/bin/rb2 edit --update-diff <changelist-no>
/build/cm/bin/rb2 submit <changelist-no>

== adding new field to ui ==


https://docs.f5net.com/pages/viewpage.action?spaceKey=~kyork&title=tmui

== reference links to tmsh ==


https://docs.f5net.com/pages/viewpage.action?pageId=392298588

https://docs.f5net.com/display/PDCSG/CSG-PD-General-Training

== p4 client through script ==


cp /home/roell/create_ws .
./create_ws <branch>
./create_ws tmos-firewall-general

== EHF ==
step 1) /opt/pdtools/bin/autofix -v 15.0.0 -b <bz-id> <CL>
step 2) trigger build from cminfo https://build.f5net.com/cm/hf.cgi
step 3) promote the build

== creating EHF on top of EHF ==


/opt/pdtools/bin/autofix -v 14.1.0.2 -s 1-5159985261 -S //depot/cr/bigip14.1.0.2/74-Bug760078-over-
49 -n ${USER}-Bug801497-over-74 -b 801497 3085325 3085424
in case of error modify build.def change line 497 -> iso-user
./create_ws bigip15.0.0
./cm/bin/hfh list
./cm/bin/hfh switch 9-Bug801497
./cm/bin/hfh switch 9
./cm/bin/hfh switch

You might also like